package lesson1;

public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        Person person1 = new Person();
        Person person2 = person1;
        for(int i = 1; i <= 1000*100;i++){
            Person person = new Person();
        }
        //System.out.println(1000*100);
        System.out.println(Person.getCount());
        //手动触发JVM垃圾回收
        System.gc();
        Thread.sleep(10*1000);
        //System.out.println(1000*100);
        System.out.println(Person.getCount());


        //System.out.println(person);
    }
}
